import * as VueRouter from "vue-router"

const routes = [
    
    // {
    //     path: '/',
    //     name: 'test',
    //     component: () => import('@/views/entity/index.vue'),
    // },
    {
        path: '/',
        name: 'login',
        component: () => import('@/views/login/index.vue'),
    },
    {
        path: '/main',
        name:'main',
        component: () => import('@/views/main/index.vue'),
        children:[ 
            {
                path: '/project',
                name: "project",
                component:()=>import('@/views/project/index.vue'),
                children:[
                    {
                        path: '/entity',
                        name: 'entity',
                        component: () => import('@/views/entity/index.vue'),
                    }
                ]
            },
            
            {
                path: '/algorithm',
                name: "algorithm",
                component:()=>import('@/views/algorithm/index.vue'),
            }
        ],
    },
]
export const router = VueRouter.createRouter({
  history: VueRouter.createWebHashHistory(),
  routes: routes
})

export default {router} 
